package com.tianhui.consignortwofei.mvp.model.enty;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2020/4/1
 * @description
 **/
public class OrderInfo implements Parcelable {
    public String id;
    //委托人
    public String clientperson;
    public String clienttel;
    //合同编号
    public String contractno;
    //抢单价格（不含税）
    public String tradprice;
    //含税（调度单）
    public String tradtaxprice;
    public String totaltaxprice;
    //抢单总价
    public String tradtotalprice;
    public String totaltradtaxprice;

    public String delivertel;
    public String deliverusername;



    public String vehicletype;
    //目的市
    public String destinationcity;
    public String placeusername;
    public String quantity;
    public String delivercounty;
    //目的地区
    public String destinationcounty;
    public String destinationtel;
    public String delivercity;
    public String weight;

    public String goodstypetext;
    public String bigprice;
    public String destinationusername;
    public String deliverprovince;
    public String deliverdetails;
    public String isstatetext;
    //0:新增, 1:未抢单, 2:已取消, 3:待装货, 4:取消确认中, 5:确认装车, 6:确认收货, 7:运输中, 9:待收款, 10:作废, 11:终止, 12:已计算, 13:付款中, 14:已完成
    public int isstate;
    public String baseprice;
    //运费单价
    public String fcprice;
    //货源单含税价格
    public String taxprice;
    public String placetel;
    public String destinationprovince;
    public String destinationdetails;
    //装货截时间
    public String lendtime;
    //发单时间
    public String sendordertime;
    public String billno;
    public String billsource;
    public String goodstype;
    public String dispatchno;
    //是否需要拆单 0不需要 1需要
    public String detachable;
    //拆单重量
    public String detachweight;
    //交货重量
    public String recelveweight;
    //抢单重量
    public String tradweight;
    //装车重量
    public String tranweight;
    //亏吨重量（交货时与装车时的差）
    public String loseweight;
    //运费总价(待支付)
    public String freightprice;
    //司机运费
    public String settleprice;
    public String leftweight;

    //最大车长
    public String lengthmax;
    //最小车长
    public String lengthmin;
    //吨位（车型）
    public String weightmax;

    //补助金
    public String grants;
    //扣除费用
    public String otherpirce;
    //合理损耗
    public String reasonableloss;
    //货物单价
    public String goodsunitprice;
    //亏吨扣除
    public String deductpirce;
    //装货地 区码
    public String delivercitycode;

    //目的地 区码
    public String destinationcitycode;

    //取单省
    public String placeprovince;
    //取单市
    public String placecity;
    //取单区
    public String placecounty;
    //取单详细地址
    public String placedetails;
    //总金额
    public String totalprice;
    //创建时间
    public String create_time;
    //单据有效时间
    public String ordertruetime;
    //发送距离
    public String senddistance;
    //确认装车重量
    public String tranweightconfirm;
    //确认交货重量
    public String recelveweightconfirm;
    //结算重量
    public String settleweight;
    //司机姓名
    public String drivername;

    //司机id
    public String driverid;
    //车牌号
    public String vehiclenum;
    //司机手机号
    public String drivertel;
    //抢单时间
    public String robbilltime;
    //装车时间
    public String trantime;
    //收货时间
    public String recelvetime;
    public String recepittime;
    //司磅地点
    public String poundpalce;
    //司磅时间
    public String poundtime;
    //结算备注
    public String fcremarks;
    //货源备注
    public String remarks;

    //装车回单
    public String poundimg;
    //卸车回单
    public String recepitbill;
    //装车车辆
    public String loadingimg;
    //卸车车辆
    public String unloadimg;





    public String placecitycode;
    //是否允许报价 0 不允许 1 允许
    public String quotation;
    public String estimatedmileage;
    //路耗计量(定额)
    public String consumequota;
    //路耗计量(定率)
    public String consumefixedrate;
    //业务单号
    public String businessno;
    //发送对象
    public String sentto;
    public String senttodetails;
    public String sendtype;
    //草稿编号
    public String draftno;
    //是否隐藏 0 不隐藏 1 隐藏
    public String ishide;
    //是否推送 0 不推 1 推送
    public String ispush;
    //运输方式 0 不含税 1 含税
    public String isdelegateshipment;
    //车长吨位限定
    public String vehiclelengthtype;
    //是否投保 0 不投保 1 投保
    public String isinsure;
    //投保类型
    public String schemeCode;
    //投保金额
    public String insureprice;
    public String orderno;
    public String customerno;
    public String driveruserid;
    //撤销费用计算的id
    public String fcid;
    //确认装车状态 0未确认 1 已确认
    public int istrans;
    //确认收货状态 0未确认 1 已确认
    public int isrecelve;

    //计算状态 0未计算 1 已计算
    public String iscount;
    //付款状态 0 未付款 1 付款中 2 已付款 3 待付款
    public String issettle;

    //货主评价状态 0 未评价 1 已评价
    public int isevaluate;
    //司机评价状态 0 未评价 1 已评价
    public String isdriverevaluate;
    //是否支付 0 或者空为未支付 1 为已支付
    public String isepay;

    //是否申请付款 0  为未申请
    public String ispay;

    //服务费率
    public String handlingfee;
    //服务费
    public String handlingprice;
    //是否投保
    public int Isinsure;
    //投保状态
    public String insurestate;
    //装车备注
    public String transremark;
    //交货备注
    public String recelveremark;
    //
    public String endorderremark;
    //其他费用
    public String driverotherpirce;
    // 1 网商 2 国美
    public String belongbank;

    //议价电话
    public String facetel;

    //预计卸车时间
    public String unloadearlhours;
    //货权
    public String customername;
    //经济人金额
    public double brokercost;
    //经济人金额
    public String brokercommission;

    public String tranlongitude;
    public String tranlatitude;

    public String recelvelongitude;
    public String recelveatitude;

    public String tranplace;
    public String receiveplace;

    //违约信息
    public  String  deductionisaudit;//扣款审核标识，1、已提交 2，已审核 3，审核不通过'"
    public  String  deductionauditreason;//'审核原因'
    public  String  isdeduction;//是否扣款 0 否，1、是'
    public  String  deductionamount="0";//扣款金额'
    public  String  deductionreason;//'扣款原因'
    public  String  deductionimage;//'扣款图片'
    public  String  deductionispay;//是否支付0 未支付，1、支付成功，2、支付失败'")
    public  String  deductionisrefund;//是否退款0 未退，1、退款成功，2、退款失败 '
    public  String  depositamount;//定金金额
    public  String  isrefund;//是否退定金

    public  String orderid;

    public int dingJinType;//区分调度单，货原单有无订金

    //有无运费审核
    public String fcstatus;
    public String goodsdescription;

    //司机装车费
    public String driverzcf="0";
    //司机仓储费
    public String driverccf="0";
    //司机备注
    public String tempcode5;

    //司机姓名
    public String billremarks;
    //是否是皓俊通单子 1 外部 0皓俊通
    public String billtype;
    public String zcfprice="0";//装车费
    public String ccfprice="0";//仓储费

    //仓储单据
    public String driverfcimg;

    //装卸货经纬度
    public String deliverlat;
    public String deliverlon;
    public String destinationlat;
    public String destinationlon;




    //固定格式，需要声明为public static final ，对象名也必须是大写的 CREATOR
    public static final Creator<OrderInfo> CREATOR = new Creator<OrderInfo>() {
        /*
        读出
        */
        @Override
        public OrderInfo createFromParcel(Parcel source) {
            OrderInfo info = new OrderInfo();
            info.id = source.readString();
            info.tradprice = source.readString();
            info.tradtaxprice = source.readString();
            info.vehicletype = source.readString();
            info.destinationcity = source.readString();
            info.placeusername = source.readString();
            info.quantity = source.readString();
            info.delivercounty = source.readString();
            info.destinationcounty = source.readString();
            info.destinationtel = source.readString();
            info.delivercity = source.readString();
            info.weight = source.readString();
            info.recelveweight = source.readString();
            info.tradweight = source.readString();
            info.tranweight = source.readString();
            info.goodstypetext = source.readString();
            info.bigprice = source.readString();
            info.destinationusername = source.readString();
            info.deliverprovince = source.readString();
            info.deliverdetails = source.readString();
            info.isstatetext = source.readString();
            info.isstate = source.readInt();
            info.baseprice = source.readString();
            info.fcprice = source.readString();
            info.placetel = source.readString();
            info.destinationprovince = source.readString();
            info.destinationdetails = source.readString();
            info.lendtime = source.readString();
            info.billno = source.readString();
            info.billsource = source.readString();
            info.goodstype = source.readString();

            info.tradtotalprice = source.readString();
            info.loseweight = source.readString();
            info.freightprice = source.readString();
            info.settleprice = source.readString();
            info.leftweight = source.readString();
            info.lengthmax = source.readString();
            info.lengthmin = source.readString();
            info.weightmax = source.readString();
            info.grants = source.readString();
            info.otherpirce = source.readString();
            info.reasonableloss = source.readString();
            info.goodsunitprice = source.readString();
            info.dispatchno = source.readString();
            info.delivercitycode = source.readString();
            info.destinationcitycode = source.readString();

            info.placeprovince = source.readString();
            info.placecity = source.readString();
            info.placecounty = source.readString();
            info.placedetails = source.readString();
            info.totalprice = source.readString();
            info.create_time = source.readString();
            info.ordertruetime = source.readString();
            info.senddistance = source.readString();
            info.tranweightconfirm = source.readString();
            info.recelveweightconfirm = source.readString();
            info.settleweight = source.readString();
            info.drivername = source.readString();


            info.driverid = source.readString();
            info.vehiclenum = source.readString();
            info.drivertel = source.readString();
            info.robbilltime = source.readString();
            info.trantime = source.readString();
            info.recelvetime = source.readString();
            info.recepittime = source.readString();
            info.poundpalce = source.readString();
            info.poundtime = source.readString();
            info.fcremarks = source.readString();
            info.remarks = source.readString();
            info.poundimg = source.readString();
            info.recepitbill = source.readString();
            info.loadingimg = source.readString();
            info.unloadimg = source.readString();


            info.placecitycode = source.readString();
            info.quotation = source.readString();
            info.estimatedmileage = source.readString();
            info.consumequota = source.readString();
            info.consumefixedrate = source.readString();
            info.businessno = source.readString();
            info.sentto = source.readString();
            info.senttodetails = source.readString();
            info.sendtype = source.readString();
            info.draftno = source.readString();
            info.ishide = source.readString();
            info.ispush = source.readString();
            info.isdelegateshipment = source.readString();
            info.vehiclelengthtype = source.readString();
            info.isinsure = source.readString();
            info.Isinsure = source.readInt();
            info.schemeCode = source.readString();
            info.insureprice = source.readString();
            info.orderno = source.readString();
            info.customerno = source.readString();
            info.driveruserid = source.readString();
            info.fcid = source.readString();
            info.istrans = source.readInt();
            info.isrecelve = source.readInt();
            info.iscount = source.readString();
            info.insurestate = source.readString();
            info.driverotherpirce = source.readString();
            info.belongbank = source.readString();
            info.facetel = source.readString();
            info.unloadearlhours = source.readString();
            info.customername = source.readString();
            info.isdriverevaluate = source.readString();
            info.handlingfee = source.readString();
            info.handlingprice = source.readString();
            info.isevaluate = source.readInt();
            info.taxprice = source.readString();
            info.brokercost = source.readDouble();
            info.brokercommission = source.readString();
            info.tranlongitude = source.readString();
            info.tranlatitude = source.readString();
            info.recelvelongitude = source.readString();
            info.recelveatitude = source.readString();
            info.tranplace = source.readString();
            info.receiveplace = source.readString();





            info.deductionisaudit = source.readString();
            info.deductionauditreason = source.readString();
            info.isdeduction = source.readString();
            info.deductionamount = source.readString();
            info.deductionreason = source.readString();
            info.deductionimage = source.readString();
            info.deductionispay = source.readString();
            info.deductionisrefund = source.readString();
            info.depositamount = source.readString();
            info.isrefund = source.readString();

            info.orderid= source.readString();
            info.dingJinType = source.readInt();
            info.fcstatus= source.readString();

            info.goodsdescription= source.readString();
            info.driverzcf= source.readString();
            info.driverccf= source.readString();
            info.tempcode5= source.readString();

            info.billremarks = source.readString();
            info.billtype = source.readString();
            info.zcfprice = source.readString();
            info.ccfprice = source.readString();

            info.driverfcimg = source.readString();

            info.deliverlat = source.readString();
            info.deliverlon = source.readString();
            info.destinationlat = source.readString();
            info.destinationlon = source.readString();



            return info;
        }

        @Override
        public OrderInfo[] newArray(int size) {
            return new OrderInfo[size];
        }

    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(tradprice);
        dest.writeString(tradtaxprice);
        dest.writeString(vehicletype);
        dest.writeString(destinationcity);
        dest.writeString(placeusername);
        dest.writeString(quantity);
        dest.writeString(delivercounty);
        dest.writeString(destinationcounty);
        dest.writeString(destinationtel);
        dest.writeString(delivercity);
        dest.writeString(weight);
        dest.writeString(recelveweight);
        dest.writeString(tradweight);
        dest.writeString(tranweight);
        dest.writeString(goodstypetext);
        dest.writeString(bigprice);
        dest.writeString(destinationusername);
        dest.writeString(deliverprovince);
        dest.writeString(deliverdetails);
        dest.writeString(isstatetext);
        dest.writeInt(isstate);
        dest.writeString(baseprice);
        dest.writeString(fcprice);
        dest.writeString(placetel);
        dest.writeString(destinationprovince);
        dest.writeString(destinationdetails);
        dest.writeString(lendtime);
        dest.writeString(billno);
        dest.writeString(billsource);
        dest.writeString(goodstype);


        dest.writeString(tradtotalprice);
        dest.writeString(loseweight);
        dest.writeString(freightprice);
        dest.writeString(settleprice);
        dest.writeString(leftweight);
        dest.writeString(lengthmax);
        dest.writeString(lengthmin);
        dest.writeString(weightmax);
        dest.writeString(grants);
        dest.writeString(otherpirce);
        dest.writeString(reasonableloss);
        dest.writeString(goodsunitprice);
        dest.writeString(dispatchno);
        dest.writeString(delivercitycode);
        dest.writeString(destinationcitycode);

        dest.writeString(placeprovince);
        dest.writeString(placecity);
        dest.writeString(placecounty);
        dest.writeString(placedetails);
        dest.writeString(totalprice);
        dest.writeString(create_time);
        dest.writeString(ordertruetime);
        dest.writeString(senddistance);
        dest.writeString(tranweightconfirm);
        dest.writeString(recelveweightconfirm);
        dest.writeString(settleweight);
        dest.writeString(drivername);


        dest.writeString(driverid);
        dest.writeString(vehiclenum);
        dest.writeString(drivertel);
        dest.writeString(robbilltime);
        dest.writeString(trantime);
        dest.writeString(recelvetime);
        dest.writeString(recepittime);
        dest.writeString(poundpalce);
        dest.writeString(poundtime);
        dest.writeString(fcremarks);
        dest.writeString(remarks);
        dest.writeString(poundimg);
        dest.writeString(recepitbill);
        dest.writeString(loadingimg);
        dest.writeString(unloadimg);


        dest.writeString(placecitycode);
        dest.writeString(quotation);
        dest.writeString(estimatedmileage);
        dest.writeString(consumequota);
        dest.writeString(consumefixedrate);
        dest.writeString(businessno);
        dest.writeString(sentto);
        dest.writeString(senttodetails);
        dest.writeString(sendtype);
        dest.writeString(draftno);
        dest.writeString(ishide);
        dest.writeString(ispush);
        dest.writeString(isdelegateshipment);
        dest.writeString(vehiclelengthtype);
        dest.writeString(isinsure);
        dest.writeInt(Isinsure);
        dest.writeString(schemeCode);
        dest.writeString(insureprice);
        dest.writeString(orderno);
        dest.writeString(customerno);
        dest.writeString(driveruserid);
        dest.writeString(fcid);
        dest.writeInt(istrans);
        dest.writeInt(isrecelve);
        dest.writeString(iscount);
        dest.writeString(insurestate);
        dest.writeString(driverotherpirce);
        dest.writeString(belongbank);
        dest.writeString(facetel);
        dest.writeString(unloadearlhours);
        dest.writeString(customername);
        dest.writeString(isdriverevaluate);
        dest.writeString(handlingfee);
        dest.writeString(handlingprice);
        dest.writeInt(isevaluate);
        dest.writeString(taxprice);
        dest.writeDouble(brokercost);
        dest.writeString(brokercommission);
        dest.writeString(tranlongitude);
        dest.writeString(tranlatitude);
        dest.writeString(recelvelongitude);
        dest.writeString(recelveatitude);
        dest.writeString(tranplace);
        dest.writeString(receiveplace);






        dest.writeString(deductionisaudit);
        dest.writeString(deductionauditreason);
        dest.writeString(isdeduction);
        dest.writeString(deductionamount);
        dest.writeString(deductionreason);
        dest.writeString(deductionimage);
        dest.writeString(deductionispay);
        dest.writeString(deductionisrefund);

        dest.writeString(depositamount);
        dest.writeString(isrefund);


        dest.writeString(orderid);
        dest.writeInt(dingJinType);
        dest.writeString(fcstatus);

        dest.writeString(goodsdescription);
        dest.writeString(driverzcf);
        dest.writeString(driverccf);
        dest.writeString(tempcode5);

        dest.writeString(billremarks);
        dest.writeString(billtype);
        dest.writeString(zcfprice);
        dest.writeString(ccfprice);

        dest.writeString(driverfcimg);

        dest.writeString(deliverlat);
        dest.writeString(deliverlon);
        dest.writeString(destinationlat);
        dest.writeString(destinationlon);



    }

}
